﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OA.Manager;
using OA.Model;
using OA.Utility;

namespace OA.Bll.Reimbursement
{
    public class ReimbursementBusinessTravelPresenter : BasePresenter<ReimbursementBusinessTravelInfo>
    {
         private readonly ReimbursementManager _manager;

         public ReimbursementBusinessTravelPresenter()
        {
            _manager = new ReimbursementManager();
        }

        public new string Get(JsonReq req)
        {
            string filter = "ReimbursementId='" + req.Options["ReimbursementId"] + "'";
            string result = JsonHelper.JsonSerializerDateTime(_manager.GetReimbursementBusinessTravelInfo(filter));
            return result;
        }
    }
}
